﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Hospital_HosPur_CompanySerch_PSnext.aspx.cs" Inherits="Hospital_Hospital_HosPur_CompanySerch_PSnext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>选择配送企业</title>
    <link href="../styles/css.css" rel="stylesheet" type="text/css">
       <script language="vbscript" src="../Common/yz.vbs"></script>
</head>
<body>
<script language="vbscript" type="text/vbscript">
            Sub AreaSelect(byval id)
                Dim strReturnValue
	            strReturnValue = showModalDialog("../System/AreaSelect.aspx?ROOT=" & id,null,"dialogWidth:320px;dialogHeight:480px;status:0;scroll:no;center:yes;help:no;")
	            If Len(strReturnValue) > 0 Then
	                document.all("txtAreaId").value = Split(strReturnValue,vbCrLf)(0)
	                document.all("txtAreaName").value = Split(strReturnValue,vbCrLf)(1)
	            End If
            End Sub
    </script>
    <script language="javascript" type="text/javascript">
    function SelelctCompany(CompanyID,CompanyName)
    {
		    var obj=new Object;
		    var RowNum=<%=HCPSRowNum%>;
		    var PHOSID=<%=HCPHosId%>;
		    obj.companyid = CompanyID;
		    obj.companyName = CompanyName;
		    obj.rownum=RowNum;
		    obj.hosplistid=PHOSID;
		   
		    self.opener.confirmvalue_PS(obj);
		    window.close();
    	   
		    
    }
    </script>

    <form id="form1" runat="server">
        <div>
            <br>
            <br>
            <table width="98%" border="0" cellpadding="2" cellspacing="1" id="tabData">
                <tr>
                    <td align="right" style="height: 26px">
                        企业名称：</td>
                    <td style="height: 26px">
                        <asp:TextBox ID="txtAttorneyName" runat="server"  Width="197px" InvertedComma="企业名称"></asp:TextBox>
                    </td>
                    <td align="right" style="height: 26px">
                        &nbsp;
                    </td>
                    <td style="height: 26px">
<%--
                        <input type='text' name='txtAreaName' id='Text1' language='javascript'   InvertedComma='所属地区' readonly />
                        <input type='text' name='txtAreaId' style="display:none" />
                        <a href='javascript:AreaSelect("530000")'>选择地区</a>--%>

                        <asp:Button ID="Button5" runat="server" Text="" CssClass="button_Query"  OnClientClick="javascript:return CheckForm();" OnClick="Button5_Click" BackColor="Blue" />
                    </td>
                </tr>
            </table>
            <asp:DataList ID="DlAttorney" runat="server" Width="98%" CssClass='table_table' HeaderStyle-CssClass='table_title'>
                <ItemStyle CssClass="table_td" />
                <AlternatingItemStyle CssClass="table_td2" />
                <HeaderTemplate>
                    <table width="98%">
                        <tr>
                        <td align="center" width="35%">
                                地区</td>
                            <td align="center" width="35%">
                                企业名称</td>
                           
                            <td align="center" width="32%">
                                选 择</td>
                        </tr>
                    </table>
                </HeaderTemplate>
                <ItemTemplate>
                    <table width="98%">
                        <tr>
                          <td width="35%" align="center">
                                <%# DataBinder.Eval(Container.DataItem, "areaname")%>
                            </td>
                           
                            <td width="35%" align="center">
                                <%# DataBinder.Eval(Container.DataItem, "companyname_ps_B1")%>
                            </td>
                           
                            <td width="32%" align="center">
                                <a href="javascript:SelelctCompany('<%# DataBinder.Eval(Container.DataItem, "Accountid_ps_B1")%>','<%# DataBinder.Eval(Container.DataItem,"companyname_ps_B1")%> ')">
                                    选择企业 </a>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
            <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
        </div>
    </form>
</body>
</html>
